<template>
	<view>
		<van-cell-group>
			<van-field
			    :model:value= "value1"
				label="真实姓名"
			    placeholder="请输入用户名"
			    :border="false"
			/>
			<van-field
			    :model:value= "value2"
				label="地址"
			    placeholder="请输入地址"
			    :border="false"
			/>
			<van-field
			    :model:value= "value3" 
				label="电话"
			    placeholder="请输入电话号码"
			    :border="false"
				type="number"
			/>
			<van-field
			    :model:value= "value4"
				label="身份证"
			    placeholder="请输入证件号码"
			    :border="false"
				type="number"
			/>
			<van-button id="sub" color="rgb(153, 210, 141)" size="normal" @click="submit">提交</van-button>
		</van-cell-group>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				value1:'',
				value2:'',
				value3:'',
				value4:''
			}
		},
		methods: {
			 submit: function (e,value1,value2,value3,value4) {
			        if(this.value1 == ''||this.value2 == ''||this.value3 == ''||this.value4 == ''){
						uni.showToast({
							title: '请输入完整信息',
							icon: 'none',
							duration: 1000
						})
						return false;
			        }
			        
			}
		}
	}
</script>

<style>
#sub{
	margin:0 auto;
}
</style>
